home *** CD-ROM | disk | FTP | other *** search
- Path: news1.sympatico.ca!news
- From: Gisele Swinson <gisele.swinson@sympatico.ca>
- Newsgroups: comp.lang.c
- Subject: Rand() Function
- Date: 21 Mar 1996 04:28:35 GMT
- Organization: Sympatico
- Message-ID: <4iqltj$40g@news1.sympatico.ca>
- NNTP-Posting-Host: ppp1061.on.sympatico.ca
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22MII (Windows; I; 16bit)
-
- How do I get a random number from a "SET" of numbers.
-
- e.g.
-
- I want a random number from this set:
-
- 2, 4, 6, 8, 10
-
- It seems so simple but I can't find anything in my text how to do this.
-
- Any help would be appreciated.
-
- Thanks
-
-
- Gisele
-
-
- gisele.swinson@sympatico.ca
-
-
-